<template>
	<base-page title="编辑主页" :showBorder="true" backgroundColor="#FFF">
		<view class="mt-20 mx-16 mb-8">
			<text class="text-bold">设置策划人介绍</text>
		</view>
		<view class="mx-16 uni-bg-color radius-8">
			<rich-editor v-model="formData" :uploadFilePurpose="1" placeholder="*请您介绍一下自己" />
		</view>
		<template #footer>
			<button class="m-12 flex center fs-16 submit-btn" @click="toSubmit">发布</button>
		</template>
	</base-page>
</template>

<script setup>
	import { ref } from 'vue'
	
	const formData = ref([])

	const toSubmit = async () => {
		console.log('提交', formData.value)
	}
</script>

<style lang="scss" scoped>
	.submit-btn {
		height: 46px;
		font-weight: 400;
		line-height: 22px;
		border-radius: 8px;
		background: #FA4543;
		color: #FFF;
	}
</style>
